'use strict';

module.exports = app => {
  const { STRING, DATE } = app.Sequelize;

  const Client = app.model.define('clients', {
    id: { type: STRING, primaryKey: true},
    clientSecret: STRING,
    redirectUris: STRING,
    grants: STRING,
    createdAt: DATE,
    updatedAt: DATE,
  });

  return Client;
};